home *** CD-ROM | disk | FTP | other *** search
- Path: gaia.ns.utk.edu!utkux4!sad
- From: sad@utkux.utcc.utk.edu (Deutscher)
- Newsgroups: comp.lang.c
- Subject: [Q] How can I set underflow NaN's to appear as zero?
- Date: 2 Jan 1996 00:51:15 GMT
- Organization: University of Tennessee, Knoxville
- Message-ID: <4c9vi3$rn6@gaia.ns.utk.edu>
- NNTP-Posting-Host: utkux4.utcc.utk.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- [ Article crossposted from gnu.gcc.help ]
- [ Author was Deutscher ]
- [ Posted on 31 Dec 1995 20:08:09 GMT ]
-
-
- Hi,
- I am using gcc 2.6.3 and get quite often #NAN's for something too close to
- zero to represent. I'd prefer to have these NAN's show up as zero, so instead
- of a gradual underflow I'd like an abrupt uunderflow. I know there us a
- library function to do exactly this on Solaris ( I used it from cc and f77),
- but I was wondering whether there is a way to tell gcc to do the same thing.
- I looked trough the info file and got lost ...
- My solution at the moment is to pipe the output through a Sed script, but I'd
- hope for something closer to the code ..
-
- Thanks in advance! Stefan
-
- --
- ===============================================================================
- Stefan A. Deutscher, sad@utk.edu, (001)-423-[522-7845|974-7838|574-5897]
- home^ UTK^ ORNL^
- ===============================================================================
-
- --
- ===============================================================================
- Stefan A. Deutscher, sad@utk.edu, (001)-423-[522-7845|974-7838|574-5897]
- home^ UTK^ ORNL^
- ===============================================================================
-